import React from 'react';
import SearchUserListComponent from './SearchUserListComponent.js';

class SearchListComponent extends React.Component{

		constructor(props){
			super(props);
			this.state = {
				value : ''
			};
			this.onchangeHander = this.onchange.bind(this);
		}

		onchange(event){
			let v = event.target.value;
			this.setState(
					{
						value : v
					}
				);
		}
		render(){

			return (
					<div>
						<input type="text"  onChange={this.onchangeHander}/>
						<SearchUserListComponent searchValue={this.state.value}/> 
					</div>
				);
		}

}
export default SearchListComponent;